Shouldn't we count characters of code and comments instead of lines of code and comments? [closed]

Posted by Gabriel on Programmers See other posts from Programmers or by Gabriel
Published on 2011-10-26T13:32:10Z Indexed on 2013/11/06 16:11 UTC
Read the original article Hit count: 279

Filed under:
|

Counting lines of code and comments is sometimes bogus, since most of what we write may be written in one or more lines, depending column count limitations, screen size, style and so forth.

Since the commonly used languages (say C, C++, C# and Java) are free-form, wouldn't it be more clever to count characters instead?

Edit: I'm not considering LOC-oriented programming where coders try to artificially match requirements by adding irrelevant comments or using multiple lines where less would be enough (or the opposite). I'm interested in better metrics that would be independent of coding style, to be used by honest programmers.

© Programmers or respective owner

Related posts about comments

Related posts about source-code